package com.AJava1710D.设计模式.策略模式2;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/1  18:27
 * 描述:
 */
public class FangshiFactory {

    public static Map<String,FangShiInterface> registerMap=new HashMap<>();

    public FangShiInterface getCelue(String status){
        return registerMap.get(status);
    }

    public static void register(String status,FangShiInterface fangShiInterface){
        registerMap.put(status,fangShiInterface);
    }

}
